/**
 * Util implementation
 */

#include "Util.h"

void kig::verify(bool cond, int line, const char* file)
{
	if (!cond) {
		std::cerr << "FAILURE!" << std::endl;
		std::cerr << "Condition failed at " << file << ":" << line << std::endl;
		exit(1);
	}
}

/////////////////////////////////////////////////

std::ostream& operator<<(std::ostream& os, const kig::Object* obj)
{
	ASSERT(obj);
	os << obj->getDesc(); 
	return os;
}

